
package is202.hrms.web;

import is202.hrms.ejb.ForumEJB;
import is202.hrms.entity.Forum;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

/**
 * Lager en liste over alle forum som opprettes.
 * 
 * @author Kim
 */
@Named("forumlistbean")
@RequestScoped
public class ForumListBean implements Serializable {
    private static final long serialVersionUID = 1L;

    @EJB ForumEJB foruEjb;

    public ForumListBean() {
    }

    public List<Forum> getForum() {
        List<Forum> l = foruEjb.findAll();
        return l;
    }
}
